.amap-demo {
  // height: 85vh;
  height: calc(100vh - 140px);
  margin: 0.5rem;
}

::v-deep .amap-logo {
  display: none;
  opacity: 0 !important;
}

::v-deep .amap-copyright {
  opacity: 0;
}

::v-deep .amap-toolbar span {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  border-radius: 0 0 4px 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  font-size: 20px;
}

::v-deep .amap-marker-label {
  // padding: 2px 12px;
  // position: relative; 
  // border:1px solid #00f;
  // background:white;
  // border-radius:.3em;
  background-color: transparent;
  color: white;
  border: 0px;
  width: 38px;
  text-align: center;

  // animation: label 1s  infinite;
}

@keyframes label {
  0% {
    opacity: 1;
  }


  100% {
    opacity:0;
  }
}

// ::v-deep .amap-marker-label {
//     padding: 2px 12px;
//     position: relative; 
//     border:1px solid #00f;
//     background:white;
//     border-radius:.3em;
// }
// ::v-deep .amap-marker-label::before {
//   content: "";
//    position: absolute;
//    bottom: -.41em; 
//    left: 1em;
//    padding: .35em;
//    background: inherit;
//    border: inherit;
//   border-left: 0;
//    border-top: 0;
//    transform: rotate(45deg);
// }

::v-deep .amap-icon {
  // animation: star 2.5s ease-in infinite;
}

::v-deep .twinkle {
  animation: star 2.5s ease-in infinite;
}

@keyframes star {

  // 0% {
  //   opacity: 0.5;
  //   filter: alpha(opacity=50);
  //   transform: scale(1);
  // }

  // 50% {
  //   opacity: 1;
  //   filter: alpha(opacity=100);
  //   transform: scale(1.05);
  // }

  // 100% {
  //   opacity: 0.5;
  //   filter: alpha(opacity=50);
  //   transform: scale(1);
  // }

  0% {
    opacity: 1;
  }


  100% {
    opacity:0;
  }
}

.map-type {
  position: absolute;
  left: 0.5vw;
  top: calc(0.8vh + 80px);
  cursor: pointer;
  display: flex;
  opacity: 0.9;

  .list {
    position: absolute;
    display: flex;
    width: 40px;
    height: 40px;
    left: 0;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 0;
  }

  .light {
    width: 34px;
    height: 34px;
    margin: 5px 3px 2px 3px;
    font-weight: 300 !important;
  }

  .map-type-img {
    width: 34px;
    height: 32px;
    vertical-align: top;
  }

  .select {
    position: absolute;
    left: 0;
    height: 40px;
    width: 120px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);
    z-index: 801;
    display: flex
  }
}

.right-bottom-box {
  position: absolute;
  left: 0.5vw;
  bottom: 0.8vh;
  display: flex;
  opacity: 0.9;

  .status-box {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.24);
    // box-shadow: 0px 0px 4px 1px white;
    border-radius: 2px;
  }

  .status-box-bottom {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
  }

  .status-img {
    width: 16px;
    height: 16px;
  }

  .status-text {
    font-weight: 400;
    color: #171717;
    font-size: 12px;
    margin-top: 2px;
  }

  .status-box-div {
    position: absolute;
    top: -384px;
    display: flex;
    flex-direction: column;
  }

  .status-box-item {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid rgba(223, 223, 223, .5);
  }

  .type-box-div {
    margin-left: 15px;
    display: flex;
  }

  .type-box {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: -1px 2px 4px rgba(0, 0, 0, 0.24);
    // box-shadow: 0px 0px 4px 1px white;
    // border-radius: 2px;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
  }

  .type-img {
    width: 23px;
    height: 22px;
  }

  .type-box-item {
    width: 48px;
    height: 48px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    border-left: 1px solid rgba(223, 223, 223, .5);

  }

  .div-box2 {
    width: 65px;
    height: 45px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    border: 1px solid #068FFF;
    z-index: 1000;
  }

  .border-left {
    border-left: 0px solid #F1F1F1;
  }
}

.custom-info-window {
  background-color: white;
  padding: 10px;
  position: absolute;
  border-radius: 2px;

  .angle {
    position: absolute;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    background-color: #fff;
    top: 14px;
    left: -5px;
  }

  .icon-close {
    font-weight: bold;
    color: #9b9999;
    animation: all 1s;
    cursor: pointer;
  }

  .icon-close:hover {
    color: #1b1a1a;
  }
}

.info-window {
  width: 250px;
  // height: 180px;
  min-height: 50px;
  max-height: 200px;
  padding-left: 15px;
  padding-right: 5px;
  overflow: auto;

  .info-item {
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 5px;
    border-bottom: 1px solid #e9eef5;

    cursor: pointer;
    animation: all;
  }

  .background {
    background: #d6e3f6;
  }

  .info-item:hover {
    background: #e9eef5;
  }

  .info-item-img {
    width: 16px;
    height: 16px
  }

  .info-item-label {
    flex: 1;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #000;
    margin-left: 10px;
  }

  .info-item-state {
    float: right;
    margin-right: 15px;
    font-size: 14px;
    color: rgba(37, 37, 37, 0.8);
  }
}

.info-window::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

.info-window::-webkit-scrollbar-thumb {
  background: #d3dce6;
  border-radius: 20px;
}

.device-detail-box {
  position: absolute;
  top: 150px;
  right: 0.5vw;
  width: 350px;
  // height: calc(100% - 160px);
  max-height: calc(100% - 160px);
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  padding: 5px;
  z-index: 2001;
  opacity: 0.9;

  .close-icon {
    position: absolute;
    right: -8px;
    top: -8px;
    font-size: 24px;
    cursor: pointer;
  }

  .device-detail-header {
    background: #008CFF;
    border-radius: 2px;
    height: 60px;
    margin: 15px 10px;
    display: flex;
    align-items: center;
  }

  .detail-card-title-icon {
    font-size: 1.6rem;
    margin: 0% 2% 0% 2%;
    color: white;
  }

  .detail-card-title-text {
    color: white;
    font-size: 18px;
    line-height: 20px;
    margin-left: 5px;
  }

  .device-detail-content {
    margin-top: -10px;
    margin-left: 10px;
    margin-right: 10px;

    .info {
      padding: 10px;
      font-size: 15px;
    }

    .info-item {
      display: flex;
      margin-bottom: 20px;
    }

    .info-item-label {
      width: 80px;
      color: #252525;
    }

    .info-item-value {
      color: rgb(93, 93, 93);
      flex: 1;
    }

    .early-warning-event {
      font-size: 14px;
      overflow: auto;
      width: 103%;
    }

    .event {
      border: 1px solid #f1f1f1;
      padding: 8px 8px 0px 8px;
      border-radius: 2px;
      background: #fdfcfc;
      margin-bottom: 5px;
    }

    .event-item {
      display: flex;
      margin-bottom: 10px;
    }
  }
}
